package org.zcl.sharding.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.zcl.sharding.service.UserService;

import javax.annotation.Resource;

/**
 * (TbUser0)表控制层
 *
 * @author makejava
 * @since 2024-07-03 15:31:08
 */
@RestController
public class UserController {
    /**
     * 服务对象
     */
    @Resource
    private UserService userService;

    @GetMapping("query/users")
    public String getUsers(){
        return userService.getUsers();
    }

    @PostMapping("add/users")
    public String addUsers(){
        return userService.addUsers();
    }
}

